package org.keyroy.map_editor.map.m;

import java.awt.Graphics;

public class PixPolygon implements DrawableShape {
	public int length;
	public int[] xs;
	public int[] ys;

	public PixPolygon() {
		this(4);
	}
	
	public PixPolygon(int length) {
		this.length = length;
		xs = new int[length];
		ys = new int[length];
	}

	@Override
	public void drawShape(Graphics g) {
		g.drawPolygon(xs, ys, length);
	}

	@Override
	public void fillShape(Graphics g) {
		g.fillPolygon(xs, ys, length);
	}

}
